#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "myfilesystemmodel.h"

#include <QFileSystemModel>
#include <QMainWindow>


QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    void initTreeview();
    ~MainWindow();

private slots:
    void on_new_file_triggered();

    void on_open_file_triggered();

    void on_save_file_triggered();

    void on_save_as_triggered();

    void on_copy_triggered();

    void on_underline_triggered(bool checked);

    void on_paste_triggered();

    void on_cut_triggered();

    void on_italics_triggered(bool checked);

    void on_font_triggered();

    void on_about_triggered();

    void on_undo_triggered();

    void on_redo_triggered();

    void on_exit_triggered();

    void on_print_triggered();

    void on_bolder_triggered(bool checked);

    void on_tabWidget_tabCloseRequested(int index);

    void showCustomContextMenu(const QPoint &pos);

    void doubleTreeView(const QModelIndex &index);

private:
    Ui::MainWindow *ui;
    QString curFile;
    MyFileSystemModel *model;
};
#endif // MAINWINDOW_H
